package javaEEBasic.day05;

public class Fruit {
    private String  brandName;
    private int price;

    public Fruit() {
    }

    public Fruit(String brandName, int price) {
        this.brandName = brandName;
        this.price = price;
    }

    public String getBrandName() {
        return brandName;
    }
    public void show() {
        System.out.println(this.brandName + "==" + this.price + "/斤");
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
